﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Windows;

namespace Kinespective
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {


        AdaptiveVM _adaptiveVM;

        public MainWindow()
        {
            InitializeComponent();
            _adaptiveVM = DataContext as AdaptiveVM;
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            _adaptiveVM.StartKinect();
        }


        private void Window_Closing(object sender, CancelEventArgs e)
        {
            _adaptiveVM.StopKinect();
        }


    }
}
